from common.config_parse import YamlConfig
from urllib.parse import urljoin
from common.const import cur_env
server_config=YamlConfig.get_rainbow_config(cur_env).get("server")
default_host=server_config.get("default")

#URL很多，可以把每个模块的url定义一个类，灵活运用
class ServerUrls:
    login_url=urljoin(default_host,"/user/login")
    pay_url=urljoin(default_host,"/pay")
    recharge_url = urljoin(default_host, "/recharge")


